<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>WoodNodeMaterial - Three.js Docs</title>
	<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
	<script src="../scripts/highlight.min.js"></script>
	<link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
	<link type="text/css" rel="stylesheet" href="../styles/page.css">
</head>
<body>
	<h1 translate="no">WoodNodeMaterial</h1>
		<section>
			<header>
				<div class="class-description"><p>Procedural wood material using TSL (Three.js Shading Language).</p>
<p>Usage examples:</p>
<p>// Using presets (recommended for common wood types)
const material = WoodNodeMaterial.fromPreset('walnut', 'gloss');</p>
<p>// Using custom parameters (for advanced customization)
const material = new WoodNodeMaterial({
centerSize: 1.2,
ringThickness: 1/40,
darkGrainColor: new THREE.Color('#2a1a0a'),
lightGrainColor: new THREE.Color('#8b4513'),
clearcoat: 1,
clearcoatRoughness: 0.3
});</p>
<p>// Mixing presets with custom overrides
const walnutParams = GetWoodPreset('walnut', 'raw');
const material = new WoodNodeMaterial({
...walnutParams,
ringThickness: 1/50,  // Override specific parameter
clearcoat: 1    // Add finish
});</p></div>
			</header>
			<article>
				<div class="container-overview">
					<h2>Constructor</h2>
					<h3 class="name name-method" id="WoodNodeMaterial" translate="no">new <a href="#WoodNodeMaterial">WoodNodeMaterial</a><span class="signature">()</span> </h3>
					<div class="method">
					</div>
				</div>
				<h2 class="subsection-title">Classes</h2>
				<dl>
					<dt><a href="WoodNodeMaterial.html">WoodNodeMaterial</a></dt>
					<dd></dd>
				</dl>
				<h2 class="subsection-title">Source</h2>
				<p>
					<a href="https://github.com/mrdoob/three.js/blob/master/examples/jsm/materials/WoodNodeMaterial.js" translate="no" target="_blank" rel="noopener">examples/jsm/materials/WoodNodeMaterial.js</a>
				</p>
			</article>
		</section>
<script src="../scripts/linenumber.js"></script>
<script src="../scripts/page.js"></script>
</body>
</html>